package org.nfIt.service;

import org.nfIt.entity.Article;
import org.nfIt.entity.PageBean;

/**
 * ClossName:ArticleService
 * Pakage:org.nfIt.service
 * Description
 *
 * @Author L
 * @Create 2024/6/5 20:13
 * @Version 2023.1.3
 */
public interface ArticleService {
    /**
     * 添加文章
     * @param article 实体
     * @return
     */
    void add(Article article);

    /**
     * 条件分页列表查询
     * @param pageNum
     * @param pageSize
     * @param categoryId
     * @param state
     * @return
     */
    PageBean<Article> list(Integer pageNum, Integer pageSize, Integer categoryId, String state);

    void update(Article article);

    void delete(Integer id);
}
